import axios from "./axios";

export const login = (param) => {
  return axios.request({
    url: "/login",
    method: "post",
    data: param,
  });
};

export const getInfo = () => {
  return axios.request({
    url: '/getInfo',
    method: 'post'
  });
};

export const loginOut = () => {
  return axios.request({
    // url: "/loginout",
    url: "/logout",
    method: "post",
  });
};

export const test = (data) => {
  return axios.request({
    url: "/user/test1",
    method: "post",
    params:data
  });
};
